From 01a8450f674ea248d6852abd808669793507f0fe Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 10 May 2007 15:55:15 +0000 Subject: [PATCH] Fixed another stat call --- includes/Image.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/Image.php b/includes/Image.php index 7529b8d92f..b456c1d7a4 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -925,12 +925,14 @@ class Image $thumbPath = wfImageThumbDir( $this->name, $this->fromSharedDirectory ) . "/$thumbName"; $thumbUrl = $this->thumbUrlFromName( $thumbName ); - $this->migrateThumbFile( $thumbName ); if ( !$wgGenerateThumbnailOnParse && !($flags & self::RENDER_NOW ) ) { $thumb = $handler->getTransform( $this, $thumbPath, $thumbUrl, $params ); break; } + + wfDebug( "Doing stat for $thumbPath\n" ); + $this->migrateThumbFile( $thumbName ); if ( file_exists( $thumbPath ) ) { $thumb = $handler->getTransform( $this, $thumbPath, $thumbUrl, $params ); break; -- 2.20.1